namespace SuppKids.Migrator.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class DishAmountAddDailyMenuDependency : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.DishAmounts", "DailyMenu_Id", c => c.Int());
            CreateIndex("dbo.DishAmounts", "DailyMenu_Id");
            AddForeignKey("dbo.DishAmounts", "DailyMenu_Id", "dbo.DailyMenus", "Id");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.DishAmounts", "DailyMenu_Id", "dbo.DailyMenus");
            DropIndex("dbo.DishAmounts", new[] { "DailyMenu_Id" });
            DropColumn("dbo.DishAmounts", "DailyMenu_Id");
        }
    }
}
